package cn.chen.utils;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public abstract class DateUtils {

    private static final String yyyyMMddHHmmss = "yyyy-MM-dd HH:mm:ss";
    private static final String hms = "HH:mm:ss";

    public static LocalDateTime start(LocalDate date) {
        if (date == null) {
            return null;
        }
        return LocalDateTime.of(date, LocalTime.of(0,0,0, 0));
    }

    public static LocalDateTime end(LocalDate date) {
        if (date == null) {
            return null;
        }
        return LocalDateTime.of(date, LocalTime.of(23,59,59, 999_999_999));
    }

}
